package com.xichen.dao;

import com.xichen.pojo.UserRole;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author tang wei
 * @version 1.0
 * @date 2020/7/18 13:10
 */
@Repository
public interface UserRoleMapper extends Mapper<UserRole> {
    @Select("<script>"+"select * from user_role where sys_id=#{userRole}</script>")
    List<UserRole> findUserRole(Integer userRole);
}
